package com.sunyur.tailor.channel.web.inner.event.bean;

import com.sunyur.tailor.channel.service.inner.base.SunyurEventService;

import java.util.HashMap;
import java.util.Map;

/**
 *
 * @Author 99288
 * @Description 事件服务容器
 * @Param
 * @return
**/
public class SunyurEventContainer {

    private static final Map<String, SunyurEventService> MAP = new HashMap<>();

    public static void add(String event, SunyurEventService handler) {
        MAP.put(event, handler);
    }

    public static SunyurEventService get(String event) {
        return MAP.get(event);
    }
}
